/**
 * @param {string[]} words
 * @return {string}
 */
 var firstPalindrome = function(words) {
  const check = (str) => {
    return str === str.split('').reverse().join('')
  }
  for(let s of words){
    if(check(s)) return s
  }
  return ''
};